<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title} - {$sitename}</title>
<link type="text/css" rel="stylesheet" href="template/style/ht.css" />
<link type="text/css" rel="stylesheet" href="template/style/build/base.css" />
<link type="text/css" rel="stylesheet" href="template/style/signup.css" />
<script language='javascript'>
<!--
// 验证表单数据有效性的函数
// 当函数返回true时，说明验证成功，表单数据正常提交
// 当函数返回false时，说明验证失败，表单数据被终止提交
function doCheck()
{
var username   	= document.frmRegister.username.value;
var password    = document.frmRegister.password.value;
var repassword  = document.frmRegister.repassword.value;
var truename    = document.frmRegister.truename.value;
var email       = document.frmRegister.email.value;
if (username == '') {
alert('请输入用户名!'); return false;
}

if (password == '') {
alert('请输入密码!'); return false;
}
if (repassword != password) {
alert('重复密码与密码不一致!'); return false;
}
if (password.length < 6 || password.length > 30) {
alert('密码必须在6到30个字符之间!'); return false;
}
if (truename == '') {
alert('请输入真实姓名!'); return false;
}
if (email == '') {
alert('请输入Email!'); return false;
}	
// 使用正则表达式验证Email的格式
var pattern = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
if (! pattern.test(email) ) {
alert('Email填写不正确!'); return false;
}

return true;
}
-->
</script>

</head>
<body class="home">
<div id="tongxue">
<div id="body">
{xingTemplate menu}
<div id="container"> 
<div id="mainWrapper" class="full clearfix">
<div id="clock"> </div>
<div class="reg-process">
<div class="reg-head">
<div class="join">
<h2 class="title_h2">加入{$sitename}</h2>
<p class="title_p">全球最大的中文微博客网站，随时随地分享生活每一刻。<a href="#">立即加入我们</a></p>
</div>
<div class="login">已有{$sitename}账号?<a href="log.php">登录</a></div>      
<div style="clear: both;"></div>     
</div>
<div id="signup-form">
<form id="reg-form" name="frmRegister" method="post" class="form" action="reg.php" onsubmit= "return doCheck();">
<table class="input-form">
<tbody>
<tr>
<th><label>用户名：<em>*</em></label></th>

<td class="col-field">
<input onkeyup="value=value.replace(/[\W]/g,'') "
      onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"  type="text"  size="30" name="username" class="text_field" />
</td>
<td class="col-help">
<div class="label-box info">
<span id="email_info">只支持英文和数字，登陆时使用！</span>
</div>
</td>
</tr>

<tr>
<th>

<label>密码：<em>*</em></label>
</th>
<td class="col-field">
<input type="password"  maxlength="16" size="30" name="password" class="text_field" />
</td>
<td class="col-help">
<div class="label-box password-meter">
<span>6-30位，英文、数字特殊字符组成</span>

</div>
</td>

</tr>
<tr>
<th>

<label>重复密码：<em>*</em></label>
</th>
<td class="col-field">
<input type="password" maxlength="16" size="30" name="repassword" class="text_field" />
</td>
<td class="col-help">
<div class="label-box password-meter">
<span>和上次输入密码相同</span>

</div>
</td>

</tr>
<tr>
<th>
<label>真实姓名：<em>*</em></label>
</th>
<td class="col-field">

<input type="text" size="30" name="truename" class="text_field" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" />
</td>
<td class="col-help">
<div class="label-box info">
<span id="screen_name_info">只支持中文,2-6个汉字</span>
</div>
</td>
</tr>

<tr>
<th><label>Email：<em>*</em></label></th>

<td class="col-field">
<input type="text"  size="30" name="email" class="text_field" />
</td>
<td class="col-help">
<div class="label-box info">
<span id="email_info">重要：邮箱地址为找回密码所使用！</span>
</div>
</td>
</tr>

<tr> 
<th></th>
<td colspan="2">
<span id="screen_name_url">
<button id="reg_sub" type="submit" name="" class="notinv" style="cursor:pointer;">注&nbsp;册&nbsp;账&nbsp;号</button>                                     
</span>                                    
</td>

</tr>
<tr> 
<th></th>
<td colspan="2">

</td>
</tr> 

</tbody>
</table>
</form>
</div>
</div>
<div id="content-footer">
<div id="content-footer-header"></div>
<div id="content-footer-content">
<p>
点击以上的注册账号按钮，即表示你同意并遵守<a target="_blank" href="#">{$sitename}服务条款</a>.
</p>
</div>
</div>

</div></div>
</div>
</div>
<!--统计-->
<div style="display:none;">{$sitecount}</div>
</body>
</html>
